package vis.app;

import processing.core.PApplet;

public abstract class AbstractSketch extends PApplet{
	private static final long serialVersionUID = 2029993390802320215L;

	public static final int WORLD_WIDTH = 724;
	public static final int WORLD_HEIGHT = 668;

	private String name;
	public String getName() {
		return name;
	}
	
	public AbstractSketch(String name) {
		this.name = name;
	}
	
	public boolean matchSketch(AbstractSketch otherSketch) {
		return this.name.equals(otherSketch.getName());
	}

	@Override
	public void init() {
		super.init();

		System.out.println("One Sketch init!");
	}

	@Override
	public void setup() {
		size(WORLD_WIDTH, WORLD_HEIGHT);
	}
	
	// @Override
	// public void draw() {
	// background(255f);
	// }
}
